home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
other
/
gui4cli
/
docs
/
tutorials
/
graphics.gc
< prev
next >
Wrap
Text File
|
1999-05-14
|
3KB
|
99 lines
G4C
WINBIG 80 28 435 190 "Graphics.gc"
WinType 11110001
; --------------------------------------------------------------
; The frame and a box for the headings
; --------------------------------------------------------------
BOX 0 0 435 190 OUT RIDGE
BOX 5 2 424 25 out button
; --------------------------------------------------------------
; COLOUR TEXT
; --------------------------------------------------------------
; Colour text used in the headings. Arguments are :
; L T Text font size Fg Bg Mask
; | | | | | | | |
CTEXT 92 168 'GRAPHICS' #screen 8 2 0 00013
CTEXT 19 11 "Boxes Lines Squares Circles" #mono 8 2 0 00132
; The 'mask' sets the text style for Underline-Bold-Italics-Shade-ShadeLength
; --------------------------------------------------------------
; BOXES - Arguments are the usual L T W H plus options.
; Options are IN|OUT and BUTTON|RIDGE|ICONDROP
; --------------------------------------------------------------
BOX 10 30 40 20 IN BUTTON
BOX 10 55 40 20 OUT BUTTON
BOX 10 80 40 20 IN RIDGE
BOX 10 105 40 20 OUT RIDGE
BOX 10 130 40 20 IN ICONDROP
BOX 10 155 40 20 OUT ICONDROP
; --------------------------------------------------------------
; LINES - Five arguments : L.1 T.1 L.2 T.2 and Colour
; --------------------------------------------------------------
LINE 80 40 80 160 1
LINE 80 161 180 161 1
LINE 82 40 95 160 2
LINE 82 40 110 160 3
LINE 82 40 125 160 4
LINE 82 40 140 160 5
LINE 82 40 155 160 6
LINE 82 40 170 160 7
; These lines divide the window vertically
LINE 66 26 66 187 1
LINE 190 26 190 187 1
LINE 304 26 304 187 1
; --------------------------------------------------------------
; SQUARES - Arguments : L T W H, colour, FILL|NOFILL
; --------------------------------------------------------------
SQUARE 200 30 30 20 1 nofill
SQUARE 250 30 30 20 1 fill
SQUARE 200 70 40 20 2 nofill
SQUARE 250 70 40 20 2 fill
SQUARE 200 110 45 20 3 nofill
SQUARE 250 110 45 20 3 fill
SQUARE 200 154 90 6 4 nofill
SQUARE 270 134 10 50 4 fill
; --------------------------------------------------------------
; CIRCLES - Arguments : CenterX CenterY xradius yradius colour FILL|NOFILL
; --------------------------------------------------------------
CIRCLE 340 40 20 10 1 nofill
CIRCLE 390 40 20 10 1 fill
CIRCLE 340 80 30 10 2 nofill
CIRCLE 390 80 30 10 2 fill
CIRCLE 340 120 25 20 3 nofill
CIRCLE 390 120 25 20 3 fill
CIRCLE 340 160 15 25 4 nofill
CIRCLE 390 160 15 25 4 fill
; --------------------------------------------------------------
; Normal program coding, such as it is, starts here.
; --------------------------------------------------------------
xonLoad
GuiOpen Graphics.gc
xonClose
GuiQuit Graphics.gc